<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>
	
		<p:dataTable var="warehouse" value="#{dtWarehouseLazyView.lazyModel}"
			paginator="true" rows="10"
			paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
			rowsPerPageTemplate="5,10,15" lazy="true">
			<p:column headerText="Code" sortBy="#{warehouse.id}" filterBy="#{warehouse.id}">
				<h:outputText value="#{warehouse.id}" />
			</p:column>
			<p:column headerText="Name" sortBy="#{warehouse.name}"
				filterBy="#{warehouse.name}">
				<h:outputText value="#{warehouse.name}" />
			</p:column>
			<p:column headerText="Landline" sortBy="#{warehouse.landline}"
				filterBy="#{warehouse.landline}">
				<h:outputText value="#{warehouse.landline}" />
			</p:column>
			<p:column headerText="Mobile" sortBy="#{warehouse.mobile}"
				filterBy="#{warehouse.mobile}">
				<h:outputText value="#{warehouse.mobile}" />
			</p:column>
			<p:column headerText="Fax" sortBy="#{warehouse.fax}"
				filterBy="#{warehouse.fax}">
				<h:outputText value="#{warehouse.fax}" />
			</p:column>
			<p:column headerText="Email" sortBy="#{warehouse.email}"
				filterBy="#{warehouse.email}">
				<h:outputText value="#{warehouse.email}" />
			</p:column>
			<p:column headerText="Address" sortBy="#{warehouse.address}"
				filterBy="#{warehouse.address}">
				<h:outputText value="#{warehouse.address}" />
			</p:column>
		</p:dataTable>

	</ui:composition>
</body>
</html>